import routerPlaceholder from '../../views/layout/router-placeholder.vue'

let routers = {
  path: 'models',
  name: 'models',
  component: routerPlaceholder,
  redirect: {
    name: "modelTest"
  },
  children: [{
    path: 'test',
    name: 'modelTest',
    component: () => import('@/views/models/test/index.vue'),
    meta: {
      activeMenu: 'modelTest',
      title: '测试',
      icon: 'modelTest',
      affix: true
    }
  },{
    path: 'underground',
    name: 'underground',
    component: () => import('@/views/models/underground/index.vue'),
    meta: {
      activeMenu: 'underground',
      title: '地下',
      icon: 'underground',
      affix: true
    }
  },{
    path: 'pipeline',
    name: 'pipeline',
    component: () => import('@/views/models/pipeline/index.vue'),
    meta: {
      activeMenu: 'pipeline',
      title: '地下管线',
      icon: 'pipeline',
      affix: true
    }
  },{
    path: 'powerplant',
    name: 'powerplant',
    component: () => import('@/views/models/powerplant/index.vue'),
    meta: {
      activeMenu: 'powerplant',
      title: '电厂',
      icon: 'powerplant',
      affix: true
    }
  },{
    path: 'primitives',
    name: 'primitives',
    component: () => import('@/views/models/primitives/index.vue'),
    meta: {
      activeMenu: 'primitives',
      title: 'primitives',
      icon: 'primitives',
      affix: true
    }
  }]
}

export default routers
